import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  // name: [{ required: true, message: "渠道名称为必填项", trigger: "blur" }],
  state: [{ required: true, message: "国家为必填项", trigger: "blur" }],
  logistics: [{ required: true, message: "物流名称为必填项", trigger: "blur" }],
  //channel: [{ required: true, message: "物流渠道为必填项", trigger: "blur" }],
  weight_from: [{ required: true, message: "重量段低位为必填项", trigger: "blur" }],
  weight_to: [{ required: true, message: "重量段高位为必填项", trigger: "blur" }],
  kilogram_price: [{ required: true, message: "公斤价为必填项", trigger: "blur" }],
  reg_fee: [{ required: true, message: "挂号费为必填项", trigger: "blur" }],
  time_start: [{ required: true, message: "生效日期", trigger: "blur" }],
});
